package com.peas.platform.module.icims.contract.basal.adapter.repository.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.peas.platform.common.core.annotation.Comment;
import com.peas.platform.framework.mybatisplus.po.BasePo;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.ibatis.type.JdbcType;
import javax.validation.constraints.*;

// 往来单位
@Data
@EqualsAndHashCode(callSuper = false)
@TableName(value = "`tbl_contract_cooperation`")
public class ContractCooperationPo extends BasePo {

    // 往来单位编码
    @Comment(value = "往来单位编码")
    @Size(max = 20, message = "往来单位编码不能超过20个字符")
    @TableField(value = "`code`", jdbcType = JdbcType.VARCHAR)
    private String code;

    // 往来单位名称
    @Comment(value = "往来单位名称")
    @NotBlank(message = "往来单位名称不能为空")
    @Size(max = 200, message = "往来单位名称不能超过200个字符")
    @TableField(value = "`name`", jdbcType = JdbcType.VARCHAR)
    private String name;

    // 联系人
    @Comment(value = "联系人")
    @Size(max = 20, message = "联系人不能超过20个字符")
    @TableField(value = "`contacter`", jdbcType = JdbcType.VARCHAR)
    private String contacter;

    // 联系电话
    @Comment(value = "联系电话")
    @Size(max = 20, message = "联系电话不能超过20个字符")
    @TableField(value = "`contact_phone`", jdbcType = JdbcType.VARCHAR)
    private String contactPhone;

    // 收款银行
    @Comment(value = "收款银行")
    @Size(max = 200, message = "收款银行不能超过200个字符")
    @TableField(value = "`bank`", jdbcType = JdbcType.VARCHAR)
    private String bank;

    // 收款账号
    @Comment(value = "收款账号")
    @Size(max = 200, message = "收款账号不能超过200个字符")
    @TableField(value = "`account`", jdbcType = JdbcType.VARCHAR)
    private String account;

    // 状态
    // 枚举取值:CommonEnableDisable
    @Comment(value = "状态", enumType = "CommonEnableDisable")
    @NotBlank(message = "状态不能为空")
    @Size(max = 20, message = "状态不能超过20个字符")
    @TableField(value = "`state`", jdbcType = JdbcType.VARCHAR)
    private String state;

}
